package com.hospital.doctor.mapper;

import com.hospital.doctor.pojo.Medical;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MedicalMapper {

    List<Medical> selectById(@Param("pId") int id);

    int insertMedical(Medical medical);

    int updateMedical(Medical medical);

    Medical selectBymId(int mId);

    int stopMedical(int mId);

    int insertStopTime(int mId);

}
